package o;

import android.content.Context;
import com.huawei.appgallery.search.api.ISearchActivityProtocol;
import o.bzw.d;

public class bzz {
    public static void ॱ(Context context, boolean z, boolean z2, int i) {
        fjb ˎ = fho.ˏ().ˋ("Search").ˎ("Search");
        ISearchActivityProtocol iSearchActivityProtocol = (ISearchActivityProtocol) ˎ.ˊ();
        iSearchActivityProtocol.setNotRequestAuto(true);
        iSearchActivityProtocol.setNotRequestHotWord(true);
        iSearchActivityProtocol.setForumSearch(true);
        if (z2) {
            iSearchActivityProtocol.setHintValue(context.getResources().getString(d.ˋ));
            iSearchActivityProtocol.setForumSectionId(i);
            iSearchActivityProtocol.setSearchPostOnly(true);
        } else if (z) {
            iSearchActivityProtocol.setHintValue(context.getResources().getString(d.ˎ));
        } else {
            iSearchActivityProtocol.setHintValue(context.getResources().getString(d.ˏ));
        }
        iSearchActivityProtocol.setScheme(z ? "searchPost|" : "searchForum|");
        iSearchActivityProtocol.setDomainId(bqy.ˋ().ˎ());
        fiu.ˊ().ˏ(context, ˎ);
    }

    public static void ˏ(Context context, int i) {
        fjb ˎ = fho.ˏ().ˋ("Search").ˎ("Search");
        ISearchActivityProtocol iSearchActivityProtocol = (ISearchActivityProtocol) ˎ.ˊ();
        iSearchActivityProtocol.setNotRequestAuto(true);
        iSearchActivityProtocol.setNotRequestHotWord(true);
        iSearchActivityProtocol.setForumSearch(true);
        iSearchActivityProtocol.setHintValue(context.getResources().getString(d.ˋ));
        iSearchActivityProtocol.setForumSectionId(i);
        iSearchActivityProtocol.setSearchPostOnly(true);
        iSearchActivityProtocol.setScheme("searchPost|");
        iSearchActivityProtocol.setDomainId(bqy.ˋ().ˎ());
        ((faj) cdb.ॱ(faj.class)).ॱ(context, cjl.ˋ("section_detail_activity"), ˎ, true);
    }
}
